<!--{template common/header}-->

<div class="f_c">
    <!--{if $_GET['op'] == 'sendcode'}-->
		<script>
        function errorhandle_$_GET['handlekey'](msg) {
            if(msg == '{$_G["XRLANG_MOBLIEREG"]["reg_pc_mobile13"]}'){
				pre_verify(jq('#pc_reg_get_verify'));
			}
        }
        </script>	
    <h3 class="flb">
        <em id="return_$_GET['handlekey']">{$_G["XRLANG_MOBLIEREG"]["login_pc_mobile11"]}</em>
        <span>
            <a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a>
        </span>
    </h3>
    <form id="confirmform" method="post" autocomplete="off" action="plugin.php?id=xinrui_mobilereg&mod=setting&op=regcode&infloat=yes&confirmsubmit=yes" onsubmit="ajaxpost('confirmform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror'); return false;">
        <div class="c cl">
            <!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
            <input type="hidden" name="formhash" value="{FORMHASH}" />
            <input type="hidden" name="phone" value="<!--{echo dhtmlspecialchars($_GET['phone'])}-->" />
            <div class="rfm mtn" style="width:360px">
            {eval
                $sechash = $sechash.random(3);
                $sectpl = str_replace("'", "\'", $sectpl);
            }
           <!--{block sectpl}--><div class="rfm"><table><tr><th><sec>: </th><td><sec><br /><sec></td></tr></table></div><!--{/block}-->
            <span id="seccode_c$sechash"></span>		
            <script type="text/javascript" reload="1">updateseccode('c$sechash', '$sectpl', '{$_G[basescript]}::{CURMODULE}');</script>

            </div>
            <div class="rfm mbw bw0" style="width:360px">
                <table width="100%">
                    <tr>
                        <th>&nbsp;</th>
                        <td>
                            <button class="pn pnc" type="submit" name="confirmsubmit" value="true" tabindex="1"><strong>{lang submit}</strong></button>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
    <!--{/if}-->
    
    
	<!--{if $_G['uid'] && $_GET['op'] == 'bind'}-->
    <h3 class="flb">
        <em id="return_$_GET['handlekey']">{$_G["XRLANG_MOBLIEREG"]['setting_bind_username']}</em>
        <span>
            <a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a>
        </span>
    </h3>
    <form id="confirmform" method="post" autocomplete="off" action="plugin.php?id=xinrui_mobilereg&mod=setting&op=bind&infloat=yes&confirmsubmit=yes" onsubmit="ajaxpost('confirmform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror'); return false;">
        <div class="c cl">
            <!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
            <input type="hidden" name="formhash" value="{FORMHASH}" />
            <div class="rfm mtn" style="width:400px">
                <table>
                    <tr>
                        <th style="width: 9em;"><label for="oldusername">{$_G["XRLANG_MOBLIEREG"]['setting_bind_oldusername']}</label></th>
                        <td><input type="text" id="oldusername" name="oldusername" size="30" class="px p_fre" tabindex="1" /></td>
                        <td class="tipcol"></td>
                    </tr>
                    <tr>
                        <th><label for="oldpassword">{$_G["XRLANG_MOBLIEREG"]['setting_bind_oldpassword']}</label></th>
                        <td><input type="password" id="oldpassword" name="oldpassword" size="30" class="px p_fre" tabindex="2" /></td>
                        <td class="tipcol"></td>
                    </tr>
					<tr>
                        <th><label for="newpassword">{$_G["XRLANG_MOBLIEREG"]['setting_bind_newpassword']}</label></th>
                        <td><input type="password" id="newpassword" name="newpassword" size="30" class="px p_fre" tabindex="2" /></td>
                        <td class="tipcol"></td>
                    </tr>
                </table>
            </div>
            <div class="rfm mbw bw0" style="width:360px">
                <table width="100%">
                    <tr>
                        <th>&nbsp;</th>
                        <td>
                            <button class="pn pnc" type="submit" name="confirmsubmit" value="true" tabindex="3"><strong>{lang submit}</strong></button>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
    <!--{/if}-->
    
    <!--{if $_G['uid'] && $_GET['op'] == 'bindm'}-->
	<style type="text/css">
        #main_message{min-height:700px;}
        .layer_reg{padding:0;}
        .regTab0 {width:600px; margin:30px 0 30px 200px;}
        .tabTit0 {height:50px;line-height:50px;border-bottom:2px solid #e8e8e8;}
        .tabTit0 li{width:50%;float:left;text-align:center;font-size:16px;}
        .tabTit0 li a{display:block;height:50px;line-height:50px;background:url(source/plugin/xinrui_mobilereg/static/image/pcIcon.png) no-repeat;}
        .tabTit0 .tabEmail{background-position:82px 14px;}
        .tabTit0 li.a .tabEmail{background-position:82px -75px;}
        .tabTit0 .tabMobile{background-position:76px -31px;}
        .tabTit0 li.a .tabMobile{background-position:76px -119px;}
        .tabTit0 li.a a{color:#3f9f5f;border-bottom:2px solid #3f9f5f;}
        .xinBtn{height:38px;line-height:38px;border:none;color:#fff;background:#3f9f5f;font-size:12px;border-radius:2px;padding:0 10px;}
    </style>
    <h3 class="flb">
        <em id="return_$_GET['handlekey']">{$_G["XRLANG_MOBLIEREG"]['login_pc_mobile24']}</em>
        <span>
            <a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a>
        </span>
    </h3>
    <form method="post" autocomplete="off" name="mregfrom" id="mregfrom" class="cl" action="plugin.php?id=xinrui_mobilereg&mod=setting&op=bindm&confirmsubmit=yes&handlekey=reg&inajax=1" onsubmit="ajaxpost('mregfrom', 'fastpost', 'fastpost', 'onerror'); return false;">
        <input type="hidden" name="formhash" value="{FORMHASH}" />
        <input type="hidden" name="referer" value="<!--{echo dhtmlspecialchars($dreferer)}-->" />
        <input name="allsubmit" value="yes" type="hidden">
        <div class="mtw">
            <div id="reginfo_a">
                <div class="rfm">
                    <table>
                    <tbody>
                    <tr>
                        <th>
                            <span class="rq">*</span><label for="pc_reg_mobile">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile']}:</label>
                        </th>
                        <td>
                            <input id="phone" name="phone" class="px" tabindex="1" value="" autocomplete="off" size="25" maxlength="11" required="" type="text">
                        </td>
                        <td class="tipcol">
                            <i id="tip_pc_reg_mobile" class="p_tip" style="display: none;">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile1']}</i><kbd id="chk_pc_reg_mobile" class="p_chk"></kbd>
                        </td>
                        <td><button id="pc_reg_get_verify" class="xinBtn" type="button" data="1" style="cursor: pointer;">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile2']}</button></td>
                    </tr>
                    </tbody>
                    </table>
                </div>
                <div class="rfm">
                    <table>
                    <tbody>
                    <tr>
                        <th>
                            <span class="rq">*</span><label for="pc_reg_verify">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile3']}:</label>
                        </th>
                        <td>
                            <input id="verfiy" name="verfiy" class="px" tabindex="1" value="" autocomplete="off" size="25" required="" type="text">
                        </td>
                        <td class="tipcol">
                            <i id="tip_pc_reg_verify" class="p_tip" style="display: none;">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile4']}</i><kbd id="chk_pc_reg_verify" class="p_chk"></kbd>
                        </td>
                    </tr>
                    </tbody>
                    </table>
                </div>
                <div class="rfm">
                    <table>
                    <tbody>
                    <tr>
                        <th>
                            <span class="rq">*</span><label for="pc_reg_passwd">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile5']}:</label>
                        </th>
                        <td>
                            <input id="passwd" name="passwd" class="px" tabindex="1" value="" autocomplete="off" size="25" required="" type="password">
                        </td>
                        <td class="tipcol">
                            <i id="tip_pc_reg_passwd" class="p_tip" style="display: none;">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile6']}</i><kbd id="chk_pc_reg_passwd" class="p_chk"></kbd>
                        </td>
                    </tr>
                    </tbody>
                    </table>
                </div>
                <div class="rfm">
                    <table>
                    <tbody>
                    <tr>
                        <th>
                            <span class="rq">*</span><label for="pc_reg_passwd2">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile7']}:</label>
                        </th>
                        <td>
                            <input id="passwd_2" name="passwd_2" class="px" tabindex="1" value="" autocomplete="off" size="25" required="" type="password">
                        </td>
                        <td class="tipcol">
                            <i id="tip_pc_reg_passwd2" class="p_tip" style="display: none;">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile8']}</i><kbd id="chk_pc_reg_passwd2" class="p_chk"></kbd>
                        </td>
                    </tr>
                    </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="rfm mbw bw0">
            <table width="100%">
            <tbody>
            <tr>
                <th>&nbsp;
                    
                </th>
                <td>
                    <span id="reginfo_a_btn">
                    <em>&nbsp;</em><button class="pn pnc" id="confirmsubmit" type="submit" name="" value="true" tabindex="1"><strong>{lang submit}</strong></button>
                    </span>
                </td>
                <td>
                </td>
            </tr>
            </tbody>
            </table>
        </div>
        <div class="rfm bw0 mbw" style="display: none;" id="sms_hooks_register">
        </div>
    </form>
    
    <script type="text/javascript">
    
    function succeedhandle_reg(url,msg) {
            setTimeout(function () {
                location.href = url;
            }, '1000');
    }
    
    jq(function(){
		jq('#pc_reg_get_verify').click(function(){
			var phone = jq('#phone').val();
			var mobile_tel = /^1[3|4|5|7|8][0-9]\d{8}$/;
			if(phone == ''){
				alert(_G.reg_pc_mobile11);	
				return ;
			}
			if(mobile_tel.test(phone)){
				showWindow('register','plugin.php?id=xinrui_mobilereg&mod=setting&op=sendcode&infloat=yes&handlekey=register&inajax=1&phone='+phone);	
			}else{
				alert(_G.reg_pc_mobile12);	
			}
			return ;		
		})

    })
            
    </script>

	<!--{/if}-->
    
    
    <!--{if $_G['uid'] && $_GET['op'] == 'unbind'}-->
	<h3 class="flb">
        <em id="return_$_GET['handlekey']">{$_G['XRLANG_MOBLIEREG']['login_pc_mobile22']}</em>
        <span>
            <a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a>
        </span>
    </h3>
	 <form id="confirmform" method="post" autocomplete="off" action="plugin.php?id=xinrui_mobilereg&mod=setting&op=unbind&infloat=yes&confirmsubmit=yes" onsubmit="ajaxpost('confirmform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror'); return false;">
        <div class="c cl">
				<!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
				<input type="hidden" name="formhash" value="{FORMHASH}" />
                {$_G['XRLANG_MOBLIEREG']['qrcode_auth_pwd']}
				<div class="rfm mtn">
					<table>
						<tr>
							<th><label for="passwordconfirm">{lang login_password}:</label></th>
							<td><input type="password" id="passwordconfirm" name="passwordconfirm" size="30" class="px p_fre" tabindex="1" /></td>
							<td class="tipcol"></td>
						</tr>
						<tr>
							<th><label for="passwordconfirm"></label></th>
							<td>
							{$_G['XRLANG_MOBLIEREG']['setting_unbind_info1']}{$_G['xinrui_userinfo']['username']}
							
							</td>
							<td class="tipcol"></td>
						</tr>
					</table> 
				</div>
				<div class="rfm mbw bw0">
					<table width="100%">
						<tr>
							<th>&nbsp;</th>
							<td>
								<button class="pn pnc" type="submit" name="confirmsubmit" value="true" tabindex="1"><strong>{lang submit}</strong></button>
							</td>
						</tr>
					</table>
				</div> 
			</div>
    </form>
	<!--{/if}-->
    
        <!--{if $_G['uid'] && $_GET['op'] == 'uptuser'}-->
    <h3 class="flb">
        <em id="return_$_GET['handlekey']">{$_G['XRLANG_MOBLIEREG']['setting_upt_username']}</em>
        <span>
            <a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a>
        </span>
    </h3>
    <form id="confirmform" method="post" autocomplete="off" action="plugin.php?id=xinrui_mobilereg&mod=setting&op=uptuserm&infloat=yes&confirmsubmit=yes" onsubmit="ajaxpost('confirmform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror'); return false;">
        <div class="c cl">
            <!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
            <input type="hidden" name="formhash" value="{FORMHASH}" />
            <div class="rfm mtn" style="width:360px">
                <table>
                    <tr>
                        <th style="width: 8em;">{$_G['XRLANG_MOBLIEREG']['setting_upt_username1']}</th>
                        <td>{$_G['username']}</td>
                        <td class="tipcol"></td>
                    </tr>
                    <tr>
                        <th><label for="newusername">{$_G['XRLANG_MOBLIEREG']['setting_upt_username2']}</label></th>
                        <td><input type="text" id="newusername" name="newusername" size="30" class="px p_fre" tabindex="1" /></td>
                        <td class="tipcol"></td>
                    </tr>
                </table>
            </div>
            <div class="rfm mbw bw0" style="width:360px">
                <table width="100%">
                    <tr>
                        <th>&nbsp;</th>
                        <td>
                            <button class="pn pnc" type="submit" name="confirmsubmit" value="true" tabindex="1"><strong>{lang submit}</strong></button>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
    <!--{/if}-->
</div>



<script type="text/javascript">
<!--{if $_G['uid']}-->
            function succeedhandle_$_GET['handlekey']() {
            hideWindow('$_GET['handlekey']');
                    location.href = location.href;
            }
<!--{/if}-->
</script>
<!--{template common/footer}-->


